<!-- HTML header for doxygen 1.8.20-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE=9"/>
	<meta name="generator" content="Doxygen 1.9.4"/>
	<meta name="viewport" content="width=device-width, initial-scale=1"/>
	<title>Raspberry Pi Pico SDK: include/hardware/pio_instructions.h Source File</title>
	<!-- <link href="tabs.css" rel="stylesheet" type="text/css"/> -->
	<script type="text/javascript" src="jquery.js"></script>
	<script type="text/javascript" src="dynsections.js"></script>
	<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
	<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
	<link href="doxygen.css" rel="stylesheet" type="text/css" />
	<link href="normalise.css" rel="stylesheet" type="text/css"/>
<link href="main.css" rel="stylesheet" type="text/css"/>
<link href="styles.css" rel="stylesheet" type="text/css"/>
</head>
<body>
	<div class="navigation-mobile">
		<div class="logo--mobile">
			<a href="/"><img src="logo-mobile.svg" alt="Raspberry Pi"></a>
		</div>
		<div class="navigation-toggle">
			<span class="line-1"></span>
			<span class="line-2">
				<p>Menu Toggle</p>
			</span>
			<span class="line-3"></span>
		</div>
	</div>
	<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
		<div class="logo">
			<a href="index.html"> <img src="logo.svg" alt="Raspberry Pi"></a>
			<span style="display: inline-block; margin-top: 10px;">
				v2.0.0
			</span>
		</div>
		<div class="navigation-footer">
			<img src="logo-mobile.svg" alt="Raspberry Pi">
			<a href="https://www.raspberrypi.com/" target="_blank">By Raspberry Pi Ltd</a>
		</div>
<!-- 		<div class="search">
			<form>
				<input type="search" name="search" id="search" placeholder="Search">
				<input type="submit" value="Search">
			</form>
		</div> -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('pio__instructions_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle"><div class="title">pio_instructions.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="comment"> * Copyright (c) 2020 Raspberry Pi (Trading) Ltd.</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="comment"> *</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="comment"> * SPDX-License-Identifier: BSD-3-Clause</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="comment"> */</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span> </div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="preprocessor">#ifndef _HARDWARE_PIO_INSTRUCTIONS_H</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="preprocessor">#define _HARDWARE_PIO_INSTRUCTIONS_H</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#include &quot;<a class="code" href="pico_8h.html">pico.h</a>&quot;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="comment">// PICO_CONFIG: PARAM_ASSERTIONS_ENABLED_PIO_INSTRUCTIONS, Enable/disable assertions in the PIO instructions, type=bool, default=0, group=pio_instructions</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="preprocessor">#ifndef PARAM_ASSERTIONS_ENABLED_PIO_INSTRUCTIONS</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="preprocessor">#define PARAM_ASSERTIONS_ENABLED_PIO_INSTRUCTIONS 0</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span> </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span><span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span><span class="keyword">enum</span> pio_instr_bits {</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span>    pio_instr_bits_jmp = 0x0000,</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span>    pio_instr_bits_wait = 0x2000,</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span>    pio_instr_bits_in = 0x4000,</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span>    pio_instr_bits_out = 0x6000,</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>    pio_instr_bits_push = 0x8000,</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span>    pio_instr_bits_pull = 0x8080,</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span>    pio_instr_bits_mov = 0xa000,</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span>    pio_instr_bits_irq = 0xc000,</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span>    pio_instr_bits_set = 0xe000,</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span>};</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span> </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span><span class="preprocessor">#ifndef NDEBUG</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span><span class="preprocessor">#define _PIO_INVALID_IN_SRC    0x08u</span></div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span><span class="preprocessor">#define _PIO_INVALID_OUT_DEST 0x10u</span></div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span><span class="preprocessor">#define _PIO_INVALID_SET_DEST 0x20u</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span><span class="preprocessor">#define _PIO_INVALID_MOV_SRC  0x40u</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span><span class="preprocessor">#define _PIO_INVALID_MOV_DEST 0x80u</span></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span><span class="preprocessor">#else</span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span><span class="preprocessor">#define _PIO_INVALID_IN_SRC    0u</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span><span class="preprocessor">#define _PIO_INVALID_OUT_DEST 0u</span></div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span><span class="preprocessor">#define _PIO_INVALID_SET_DEST 0u</span></div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span><span class="preprocessor">#define _PIO_INVALID_MOV_SRC  0u</span></div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span><span class="preprocessor">#define _PIO_INVALID_MOV_DEST 0u</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span> </div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#ga52f7ffda150c44a085ead5c80a40352f">   64</a></span><span class="keyword">enum</span> <a class="code hl_enumeration" href="group__pio__instructions.html#ga52f7ffda150c44a085ead5c80a40352f">pio_src_dest</a> {</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span>    pio_pins = 0u,</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span>    pio_x = 1u,</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span>    pio_y = 2u,</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span>    pio_null = 3u | _PIO_INVALID_SET_DEST | _PIO_INVALID_MOV_DEST,</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>    pio_pindirs = 4u | _PIO_INVALID_IN_SRC | _PIO_INVALID_MOV_SRC | _PIO_INVALID_MOV_DEST,</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span>    pio_exec_mov = 4u | _PIO_INVALID_IN_SRC | _PIO_INVALID_OUT_DEST | _PIO_INVALID_SET_DEST | _PIO_INVALID_MOV_SRC,</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span>    pio_status = 5u | _PIO_INVALID_IN_SRC | _PIO_INVALID_OUT_DEST | _PIO_INVALID_SET_DEST | _PIO_INVALID_MOV_DEST,</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span>    pio_pc = 5u | _PIO_INVALID_IN_SRC | _PIO_INVALID_SET_DEST | _PIO_INVALID_MOV_SRC,</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>    pio_isr = 6u | _PIO_INVALID_SET_DEST,</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span>    pio_osr = 7u | _PIO_INVALID_OUT_DEST | _PIO_INVALID_SET_DEST,</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span>    pio_exec_out = 7u | _PIO_INVALID_IN_SRC | _PIO_INVALID_SET_DEST | _PIO_INVALID_MOV_SRC | _PIO_INVALID_MOV_DEST,</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span>};</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span> </div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span><span class="keyword">static</span> <span class="keyword">inline</span> uint _pio_major_instr_bits(uint instr) {</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>    <span class="keywordflow">return</span> instr &amp; 0xe000u;</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span>}</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span> </div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span><span class="keyword">static</span> <span class="keyword">inline</span> uint _pio_encode_instr_and_args(<span class="keyword">enum</span> pio_instr_bits instr_bits, uint arg1, uint arg2) {</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span>    valid_params_if(PIO_INSTRUCTIONS, arg1 &lt;= 0x7);</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span><span class="preprocessor">#if PARAM_ASSERTIONS_ENABLED(PIO_INSTRUCTIONS)</span></div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span>    uint32_t major = _pio_major_instr_bits(instr_bits);</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span>    <span class="keywordflow">if</span> (major == pio_instr_bits_in || major == pio_instr_bits_out) {</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>        assert(arg2 &amp;&amp; arg2 &lt;= 32);</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span>    } <span class="keywordflow">else</span> {</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span>        assert(arg2 &lt;= 31);</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno">   90</span>    }</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno">   91</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno">   92</span>    <span class="keywordflow">return</span> instr_bits | (arg1 &lt;&lt; 5u) | (arg2 &amp; 0x1fu);</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span>}</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span> </div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span><span class="keyword">static</span> <span class="keyword">inline</span> uint _pio_encode_instr_and_src_dest(<span class="keyword">enum</span> pio_instr_bits instr_bits, <span class="keyword">enum</span> <a class="code hl_enumeration" href="group__pio__instructions.html#ga52f7ffda150c44a085ead5c80a40352f">pio_src_dest</a> dest, uint value) {</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span>    <span class="keywordflow">return</span> _pio_encode_instr_and_args(instr_bits, dest &amp; 7u, value);</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span>}</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span> </div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#ga24aeafc5ee09e8f9c7b589c92beea72a">  110</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#ga24aeafc5ee09e8f9c7b589c92beea72a">pio_encode_delay</a>(uint cycles) {</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno">  111</span>    <span class="comment">// note that the maximum cycles will be smaller if sideset_bit_count &gt; 0</span></div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno">  112</span>    valid_params_if(PIO_INSTRUCTIONS, cycles &lt;= 0x1f);</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno">  113</span>    <span class="keywordflow">return</span> cycles &lt;&lt; 8u;</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno">  114</span>}</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno">  115</span> </div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#ga983ded98ebaa885cf3ca0ebbcd8c8511">  128</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#ga983ded98ebaa885cf3ca0ebbcd8c8511">pio_encode_sideset</a>(uint sideset_bit_count, uint value) {</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno">  129</span>    valid_params_if(PIO_INSTRUCTIONS, sideset_bit_count &gt;= 1 &amp;&amp; sideset_bit_count &lt;= 5);</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno">  130</span>    valid_params_if(PIO_INSTRUCTIONS, value &lt;= ((1u &lt;&lt; sideset_bit_count) - 1));</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno">  131</span>    <span class="keywordflow">return</span> value &lt;&lt; (13u - sideset_bit_count);</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno">  132</span>}</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno">  133</span> </div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#ga4f6b4194e458dc4337777f99cfe48057">  146</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#ga4f6b4194e458dc4337777f99cfe48057">pio_encode_sideset_opt</a>(uint sideset_bit_count, uint value) {</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno">  147</span>    valid_params_if(PIO_INSTRUCTIONS, sideset_bit_count &gt;= 1 &amp;&amp; sideset_bit_count &lt;= 4);</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno">  148</span>    valid_params_if(PIO_INSTRUCTIONS, value &lt;= ((1u &lt;&lt; sideset_bit_count) - 1));</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno">  149</span>    <span class="keywordflow">return</span> 0x1000u | value &lt;&lt; (12u - sideset_bit_count);</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno">  150</span>}</div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno">  151</span> </div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#ga0fa70500aace834f01a207c0e9a73a22">  161</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#ga0fa70500aace834f01a207c0e9a73a22">pio_encode_jmp</a>(uint addr) {</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno">  162</span>    <span class="keywordflow">return</span> _pio_encode_instr_and_args(pio_instr_bits_jmp, 0, addr);</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno">  163</span>}</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno">  164</span> </div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#ga6364142606d438862b78a32924685d06">  174</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#ga6364142606d438862b78a32924685d06">pio_encode_jmp_not_x</a>(uint addr) {</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno">  175</span>    <span class="keywordflow">return</span> _pio_encode_instr_and_args(pio_instr_bits_jmp, 1, addr);</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno">  176</span>}</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno">  177</span> </div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#gabfb50e373bb0be974d2a20fee51391ef">  187</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#gabfb50e373bb0be974d2a20fee51391ef">pio_encode_jmp_x_dec</a>(uint addr) {</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno">  188</span>    <span class="keywordflow">return</span> _pio_encode_instr_and_args(pio_instr_bits_jmp, 2, addr);</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno">  189</span>}</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno">  190</span> </div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#gac9b3ae0db062491f5dd9f202fbf1f61c">  200</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#gac9b3ae0db062491f5dd9f202fbf1f61c">pio_encode_jmp_not_y</a>(uint addr) {</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno">  201</span>    <span class="keywordflow">return</span> _pio_encode_instr_and_args(pio_instr_bits_jmp, 3, addr);</div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno">  202</span>}</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno">  203</span> </div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#ga779635bf3aac88181226769917284e05">  213</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#ga779635bf3aac88181226769917284e05">pio_encode_jmp_y_dec</a>(uint addr) {</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno">  214</span>    <span class="keywordflow">return</span> _pio_encode_instr_and_args(pio_instr_bits_jmp, 4, addr);</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno">  215</span>}</div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno">  216</span> </div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#ga8681cd99b78d32c2dc487b3b4cf6562b">  226</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#ga8681cd99b78d32c2dc487b3b4cf6562b">pio_encode_jmp_x_ne_y</a>(uint addr) {</div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno">  227</span>    <span class="keywordflow">return</span> _pio_encode_instr_and_args(pio_instr_bits_jmp, 5, addr);</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno">  228</span>}</div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno">  229</span> </div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#ga9494089ea30e55968884743b50233eee">  239</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#ga9494089ea30e55968884743b50233eee">pio_encode_jmp_pin</a>(uint addr) {</div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno">  240</span>    <span class="keywordflow">return</span> _pio_encode_instr_and_args(pio_instr_bits_jmp, 6, addr);</div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno">  241</span>}</div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno">  242</span> </div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#gaf9fdae45a6ab4826175267c41d6e6e91">  252</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#gaf9fdae45a6ab4826175267c41d6e6e91">pio_encode_jmp_not_osre</a>(uint addr) {</div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno">  253</span>    <span class="keywordflow">return</span> _pio_encode_instr_and_args(pio_instr_bits_jmp, 7, addr);</div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno">  254</span>}</div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno">  255</span> </div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno">  256</span><span class="keyword">static</span> <span class="keyword">inline</span> uint _pio_encode_irq(<span class="keywordtype">bool</span> relative, uint irq) {</div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno">  257</span>    valid_params_if(PIO_INSTRUCTIONS, irq &lt;= 7);</div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno">  258</span>    <span class="keywordflow">return</span> (relative ? 0x10u : 0x0u) | irq;</div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno">  259</span>}</div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno">  260</span> </div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#ga4ef695ef0dfab6bb08dad4ab56a89da0">  271</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#ga4ef695ef0dfab6bb08dad4ab56a89da0">pio_encode_wait_gpio</a>(<span class="keywordtype">bool</span> polarity, uint gpio) {</div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno">  272</span>    <span class="keywordflow">return</span> _pio_encode_instr_and_args(pio_instr_bits_wait, 0u | (polarity ? 4u : 0u), gpio);</div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno">  273</span>}</div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno">  274</span> </div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#gafd946f6a77882a7f2c2d6a48b08529a7">  285</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#gafd946f6a77882a7f2c2d6a48b08529a7">pio_encode_wait_pin</a>(<span class="keywordtype">bool</span> polarity, uint pin) {</div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno">  286</span>    <span class="keywordflow">return</span> _pio_encode_instr_and_args(pio_instr_bits_wait, 1u | (polarity ? 4u : 0u), pin);</div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno">  287</span>}</div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno">  288</span> </div>
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#ga40e02b4c097d3905b84a897aa2775072">  300</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#ga40e02b4c097d3905b84a897aa2775072">pio_encode_wait_irq</a>(<span class="keywordtype">bool</span> polarity, <span class="keywordtype">bool</span> relative, uint irq) {</div>
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno">  301</span>    valid_params_if(PIO_INSTRUCTIONS, irq &lt;= 7);</div>
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno">  302</span>    <span class="keywordflow">return</span> _pio_encode_instr_and_args(pio_instr_bits_wait, 2u | (polarity ? 4u : 0u), _pio_encode_irq(relative, irq));</div>
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno">  303</span>}</div>
<div class="line"><a id="l00304" name="l00304"></a><span class="lineno">  304</span> </div>
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#ga8abee17fb296d7df2d4938fa25662bb5">  315</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#ga8abee17fb296d7df2d4938fa25662bb5">pio_encode_in</a>(<span class="keyword">enum</span> <a class="code hl_enumeration" href="group__pio__instructions.html#ga52f7ffda150c44a085ead5c80a40352f">pio_src_dest</a> src, uint count) {</div>
<div class="line"><a id="l00316" name="l00316"></a><span class="lineno">  316</span>    valid_params_if(PIO_INSTRUCTIONS, !(src &amp; _PIO_INVALID_IN_SRC));</div>
<div class="line"><a id="l00317" name="l00317"></a><span class="lineno">  317</span>    <span class="keywordflow">return</span> _pio_encode_instr_and_src_dest(pio_instr_bits_in, src, count);</div>
<div class="line"><a id="l00318" name="l00318"></a><span class="lineno">  318</span>}</div>
<div class="line"><a id="l00319" name="l00319"></a><span class="lineno">  319</span> </div>
<div class="line"><a id="l00330" name="l00330"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#ga6bdb43179b47dd61c15d346ba9cbed58">  330</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#ga6bdb43179b47dd61c15d346ba9cbed58">pio_encode_out</a>(<span class="keyword">enum</span> <a class="code hl_enumeration" href="group__pio__instructions.html#ga52f7ffda150c44a085ead5c80a40352f">pio_src_dest</a> dest, uint count) {</div>
<div class="line"><a id="l00331" name="l00331"></a><span class="lineno">  331</span>    valid_params_if(PIO_INSTRUCTIONS, !(dest &amp; _PIO_INVALID_OUT_DEST));</div>
<div class="line"><a id="l00332" name="l00332"></a><span class="lineno">  332</span>    <span class="keywordflow">return</span> _pio_encode_instr_and_src_dest(pio_instr_bits_out, dest, count);</div>
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno">  333</span>}</div>
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno">  334</span> </div>
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#ga44bd903b50c71bd5e18e1b3826a79867">  345</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#ga44bd903b50c71bd5e18e1b3826a79867">pio_encode_push</a>(<span class="keywordtype">bool</span> if_full, <span class="keywordtype">bool</span> block) {</div>
<div class="line"><a id="l00346" name="l00346"></a><span class="lineno">  346</span>    <span class="keywordflow">return</span> _pio_encode_instr_and_args(pio_instr_bits_push, (if_full ? 2u : 0u) | (block ? 1u : 0u), 0);</div>
<div class="line"><a id="l00347" name="l00347"></a><span class="lineno">  347</span>}</div>
<div class="line"><a id="l00348" name="l00348"></a><span class="lineno">  348</span> </div>
<div class="line"><a id="l00359" name="l00359"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#ga69c0d008653d8bc0f8a985d699d9c6ba">  359</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#ga69c0d008653d8bc0f8a985d699d9c6ba">pio_encode_pull</a>(<span class="keywordtype">bool</span> if_empty, <span class="keywordtype">bool</span> block) {</div>
<div class="line"><a id="l00360" name="l00360"></a><span class="lineno">  360</span>    <span class="keywordflow">return</span> _pio_encode_instr_and_args(pio_instr_bits_pull, (if_empty ? 2u : 0u) | (block ? 1u : 0u), 0);</div>
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno">  361</span>}</div>
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno">  362</span> </div>
<div class="line"><a id="l00373" name="l00373"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#gad142265ea88bd5f9ef5f1651f5fa2002">  373</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#gad142265ea88bd5f9ef5f1651f5fa2002">pio_encode_mov</a>(<span class="keyword">enum</span> <a class="code hl_enumeration" href="group__pio__instructions.html#ga52f7ffda150c44a085ead5c80a40352f">pio_src_dest</a> dest, <span class="keyword">enum</span> <a class="code hl_enumeration" href="group__pio__instructions.html#ga52f7ffda150c44a085ead5c80a40352f">pio_src_dest</a> src) {</div>
<div class="line"><a id="l00374" name="l00374"></a><span class="lineno">  374</span>    valid_params_if(PIO_INSTRUCTIONS, !(dest &amp; _PIO_INVALID_MOV_DEST));</div>
<div class="line"><a id="l00375" name="l00375"></a><span class="lineno">  375</span>    valid_params_if(PIO_INSTRUCTIONS, !(src &amp; _PIO_INVALID_MOV_SRC));</div>
<div class="line"><a id="l00376" name="l00376"></a><span class="lineno">  376</span>    <span class="keywordflow">return</span> _pio_encode_instr_and_src_dest(pio_instr_bits_mov, dest, src &amp; 7u);</div>
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno">  377</span>}</div>
<div class="line"><a id="l00378" name="l00378"></a><span class="lineno">  378</span> </div>
<div class="line"><a id="l00389" name="l00389"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#ga5d6075e97f5a9e592700fdd09f09ea39">  389</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#ga5d6075e97f5a9e592700fdd09f09ea39">pio_encode_mov_not</a>(<span class="keyword">enum</span> <a class="code hl_enumeration" href="group__pio__instructions.html#ga52f7ffda150c44a085ead5c80a40352f">pio_src_dest</a> dest, <span class="keyword">enum</span> <a class="code hl_enumeration" href="group__pio__instructions.html#ga52f7ffda150c44a085ead5c80a40352f">pio_src_dest</a> src) {</div>
<div class="line"><a id="l00390" name="l00390"></a><span class="lineno">  390</span>    valid_params_if(PIO_INSTRUCTIONS, !(dest &amp; _PIO_INVALID_MOV_DEST));</div>
<div class="line"><a id="l00391" name="l00391"></a><span class="lineno">  391</span>    valid_params_if(PIO_INSTRUCTIONS, !(src &amp; _PIO_INVALID_MOV_SRC));</div>
<div class="line"><a id="l00392" name="l00392"></a><span class="lineno">  392</span>    <span class="keywordflow">return</span> _pio_encode_instr_and_src_dest(pio_instr_bits_mov, dest, (1u &lt;&lt; 3u) | (src &amp; 7u));</div>
<div class="line"><a id="l00393" name="l00393"></a><span class="lineno">  393</span>}</div>
<div class="line"><a id="l00394" name="l00394"></a><span class="lineno">  394</span> </div>
<div class="line"><a id="l00405" name="l00405"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#gab93b7ade8c9bd6b26213d4349c219994">  405</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#gab93b7ade8c9bd6b26213d4349c219994">pio_encode_mov_reverse</a>(<span class="keyword">enum</span> <a class="code hl_enumeration" href="group__pio__instructions.html#ga52f7ffda150c44a085ead5c80a40352f">pio_src_dest</a> dest, <span class="keyword">enum</span> <a class="code hl_enumeration" href="group__pio__instructions.html#ga52f7ffda150c44a085ead5c80a40352f">pio_src_dest</a> src) {</div>
<div class="line"><a id="l00406" name="l00406"></a><span class="lineno">  406</span>    valid_params_if(PIO_INSTRUCTIONS, !(dest &amp; _PIO_INVALID_MOV_DEST));</div>
<div class="line"><a id="l00407" name="l00407"></a><span class="lineno">  407</span>    valid_params_if(PIO_INSTRUCTIONS, !(src &amp; _PIO_INVALID_MOV_SRC));</div>
<div class="line"><a id="l00408" name="l00408"></a><span class="lineno">  408</span>    <span class="keywordflow">return</span> _pio_encode_instr_and_src_dest(pio_instr_bits_mov, dest, (2u &lt;&lt; 3u) | (src &amp; 7u));</div>
<div class="line"><a id="l00409" name="l00409"></a><span class="lineno">  409</span>}</div>
<div class="line"><a id="l00410" name="l00410"></a><span class="lineno">  410</span> </div>
<div class="line"><a id="l00421" name="l00421"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#ga2de1940b69cc1cd2c5e8d3d4eee653ba">  421</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#ga2de1940b69cc1cd2c5e8d3d4eee653ba">pio_encode_irq_set</a>(<span class="keywordtype">bool</span> relative, uint irq) {</div>
<div class="line"><a id="l00422" name="l00422"></a><span class="lineno">  422</span>    <span class="keywordflow">return</span> _pio_encode_instr_and_args(pio_instr_bits_irq, 0, _pio_encode_irq(relative, irq));</div>
<div class="line"><a id="l00423" name="l00423"></a><span class="lineno">  423</span>}</div>
<div class="line"><a id="l00424" name="l00424"></a><span class="lineno">  424</span> </div>
<div class="line"><a id="l00435" name="l00435"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#gae9221d56036ef5670eddd0d5ca93b5fd">  435</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#gae9221d56036ef5670eddd0d5ca93b5fd">pio_encode_irq_wait</a>(<span class="keywordtype">bool</span> relative, uint irq) {</div>
<div class="line"><a id="l00436" name="l00436"></a><span class="lineno">  436</span>    <span class="keywordflow">return</span> _pio_encode_instr_and_args(pio_instr_bits_irq, 1, _pio_encode_irq(relative, irq));</div>
<div class="line"><a id="l00437" name="l00437"></a><span class="lineno">  437</span>}</div>
<div class="line"><a id="l00438" name="l00438"></a><span class="lineno">  438</span> </div>
<div class="line"><a id="l00449" name="l00449"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#ga5d1238cddeb76680c7128933985f5ef0">  449</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#ga5d1238cddeb76680c7128933985f5ef0">pio_encode_irq_clear</a>(<span class="keywordtype">bool</span> relative, uint irq) {</div>
<div class="line"><a id="l00450" name="l00450"></a><span class="lineno">  450</span>    <span class="keywordflow">return</span> _pio_encode_instr_and_args(pio_instr_bits_irq, 2, _pio_encode_irq(relative, irq));</div>
<div class="line"><a id="l00451" name="l00451"></a><span class="lineno">  451</span>}</div>
<div class="line"><a id="l00452" name="l00452"></a><span class="lineno">  452</span> </div>
<div class="line"><a id="l00463" name="l00463"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#gae7094f127edb55a6d1d750145577eef8">  463</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#gae7094f127edb55a6d1d750145577eef8">pio_encode_set</a>(<span class="keyword">enum</span> <a class="code hl_enumeration" href="group__pio__instructions.html#ga52f7ffda150c44a085ead5c80a40352f">pio_src_dest</a> dest, uint value) {</div>
<div class="line"><a id="l00464" name="l00464"></a><span class="lineno">  464</span>    valid_params_if(PIO_INSTRUCTIONS, !(dest &amp; _PIO_INVALID_SET_DEST));</div>
<div class="line"><a id="l00465" name="l00465"></a><span class="lineno">  465</span>    <span class="keywordflow">return</span> _pio_encode_instr_and_src_dest(pio_instr_bits_set, dest, value);</div>
<div class="line"><a id="l00466" name="l00466"></a><span class="lineno">  466</span>}</div>
<div class="line"><a id="l00467" name="l00467"></a><span class="lineno">  467</span> </div>
<div class="line"><a id="l00476" name="l00476"></a><span class="lineno"><a class="line" href="group__pio__instructions.html#ga89ae8dfbcf647fb11c11a270cb974619">  476</a></span><span class="keyword">static</span> <span class="keyword">inline</span> uint <a class="code hl_function" href="group__pio__instructions.html#ga89ae8dfbcf647fb11c11a270cb974619">pio_encode_nop</a>(<span class="keywordtype">void</span>) {</div>
<div class="line"><a id="l00477" name="l00477"></a><span class="lineno">  477</span>    <span class="keywordflow">return</span> <a class="code hl_function" href="group__pio__instructions.html#gad142265ea88bd5f9ef5f1651f5fa2002">pio_encode_mov</a>(pio_y, pio_y);</div>
<div class="line"><a id="l00478" name="l00478"></a><span class="lineno">  478</span>}</div>
<div class="line"><a id="l00479" name="l00479"></a><span class="lineno">  479</span> </div>
<div class="line"><a id="l00480" name="l00480"></a><span class="lineno">  480</span><span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a id="l00481" name="l00481"></a><span class="lineno">  481</span>}</div>
<div class="line"><a id="l00482" name="l00482"></a><span class="lineno">  482</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00483" name="l00483"></a><span class="lineno">  483</span> </div>
<div class="line"><a id="l00484" name="l00484"></a><span class="lineno">  484</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="agroup__pio__instructions_html_ga0fa70500aace834f01a207c0e9a73a22"><div class="ttname"><a href="group__pio__instructions.html#ga0fa70500aace834f01a207c0e9a73a22">pio_encode_jmp</a></div><div class="ttdeci">static uint pio_encode_jmp(uint addr)</div><div class="ttdoc">Encode an unconditional JMP instruction.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:161</div></div>
<div class="ttc" id="agroup__pio__instructions_html_ga24aeafc5ee09e8f9c7b589c92beea72a"><div class="ttname"><a href="group__pio__instructions.html#ga24aeafc5ee09e8f9c7b589c92beea72a">pio_encode_delay</a></div><div class="ttdeci">static uint pio_encode_delay(uint cycles)</div><div class="ttdoc">Encode just the delay slot bits of an instruction.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:110</div></div>
<div class="ttc" id="agroup__pio__instructions_html_ga2de1940b69cc1cd2c5e8d3d4eee653ba"><div class="ttname"><a href="group__pio__instructions.html#ga2de1940b69cc1cd2c5e8d3d4eee653ba">pio_encode_irq_set</a></div><div class="ttdeci">static uint pio_encode_irq_set(bool relative, uint irq)</div><div class="ttdoc">Encode a IRQ SET instruction.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:421</div></div>
<div class="ttc" id="agroup__pio__instructions_html_ga40e02b4c097d3905b84a897aa2775072"><div class="ttname"><a href="group__pio__instructions.html#ga40e02b4c097d3905b84a897aa2775072">pio_encode_wait_irq</a></div><div class="ttdeci">static uint pio_encode_wait_irq(bool polarity, bool relative, uint irq)</div><div class="ttdoc">Encode a WAIT for IRQ instruction.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:300</div></div>
<div class="ttc" id="agroup__pio__instructions_html_ga44bd903b50c71bd5e18e1b3826a79867"><div class="ttname"><a href="group__pio__instructions.html#ga44bd903b50c71bd5e18e1b3826a79867">pio_encode_push</a></div><div class="ttdeci">static uint pio_encode_push(bool if_full, bool block)</div><div class="ttdoc">Encode a PUSH instruction.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:345</div></div>
<div class="ttc" id="agroup__pio__instructions_html_ga4ef695ef0dfab6bb08dad4ab56a89da0"><div class="ttname"><a href="group__pio__instructions.html#ga4ef695ef0dfab6bb08dad4ab56a89da0">pio_encode_wait_gpio</a></div><div class="ttdeci">static uint pio_encode_wait_gpio(bool polarity, uint gpio)</div><div class="ttdoc">Encode a WAIT for GPIO pin instruction.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:271</div></div>
<div class="ttc" id="agroup__pio__instructions_html_ga4f6b4194e458dc4337777f99cfe48057"><div class="ttname"><a href="group__pio__instructions.html#ga4f6b4194e458dc4337777f99cfe48057">pio_encode_sideset_opt</a></div><div class="ttdeci">static uint pio_encode_sideset_opt(uint sideset_bit_count, uint value)</div><div class="ttdoc">Encode just the side set bits of an instruction (in optional -opt side set mode)</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:146</div></div>
<div class="ttc" id="agroup__pio__instructions_html_ga52f7ffda150c44a085ead5c80a40352f"><div class="ttname"><a href="group__pio__instructions.html#ga52f7ffda150c44a085ead5c80a40352f">pio_src_dest</a></div><div class="ttdeci">pio_src_dest</div><div class="ttdoc">Enumeration of values to pass for source/destination args for instruction encoding functions.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:64</div></div>
<div class="ttc" id="agroup__pio__instructions_html_ga5d1238cddeb76680c7128933985f5ef0"><div class="ttname"><a href="group__pio__instructions.html#ga5d1238cddeb76680c7128933985f5ef0">pio_encode_irq_clear</a></div><div class="ttdeci">static uint pio_encode_irq_clear(bool relative, uint irq)</div><div class="ttdoc">Encode a IRQ CLEAR instruction.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:449</div></div>
<div class="ttc" id="agroup__pio__instructions_html_ga5d6075e97f5a9e592700fdd09f09ea39"><div class="ttname"><a href="group__pio__instructions.html#ga5d6075e97f5a9e592700fdd09f09ea39">pio_encode_mov_not</a></div><div class="ttdeci">static uint pio_encode_mov_not(enum pio_src_dest dest, enum pio_src_dest src)</div><div class="ttdoc">Encode a MOV instruction with bit invert.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:389</div></div>
<div class="ttc" id="agroup__pio__instructions_html_ga6364142606d438862b78a32924685d06"><div class="ttname"><a href="group__pio__instructions.html#ga6364142606d438862b78a32924685d06">pio_encode_jmp_not_x</a></div><div class="ttdeci">static uint pio_encode_jmp_not_x(uint addr)</div><div class="ttdoc">Encode a conditional JMP if scratch X zero instruction.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:174</div></div>
<div class="ttc" id="agroup__pio__instructions_html_ga69c0d008653d8bc0f8a985d699d9c6ba"><div class="ttname"><a href="group__pio__instructions.html#ga69c0d008653d8bc0f8a985d699d9c6ba">pio_encode_pull</a></div><div class="ttdeci">static uint pio_encode_pull(bool if_empty, bool block)</div><div class="ttdoc">Encode a PULL instruction.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:359</div></div>
<div class="ttc" id="agroup__pio__instructions_html_ga6bdb43179b47dd61c15d346ba9cbed58"><div class="ttname"><a href="group__pio__instructions.html#ga6bdb43179b47dd61c15d346ba9cbed58">pio_encode_out</a></div><div class="ttdeci">static uint pio_encode_out(enum pio_src_dest dest, uint count)</div><div class="ttdoc">Encode an OUT instruction.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:330</div></div>
<div class="ttc" id="agroup__pio__instructions_html_ga779635bf3aac88181226769917284e05"><div class="ttname"><a href="group__pio__instructions.html#ga779635bf3aac88181226769917284e05">pio_encode_jmp_y_dec</a></div><div class="ttdeci">static uint pio_encode_jmp_y_dec(uint addr)</div><div class="ttdoc">Encode a conditional JMP if scratch Y non-zero (and post-decrement Y) instruction.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:213</div></div>
<div class="ttc" id="agroup__pio__instructions_html_ga8681cd99b78d32c2dc487b3b4cf6562b"><div class="ttname"><a href="group__pio__instructions.html#ga8681cd99b78d32c2dc487b3b4cf6562b">pio_encode_jmp_x_ne_y</a></div><div class="ttdeci">static uint pio_encode_jmp_x_ne_y(uint addr)</div><div class="ttdoc">Encode a conditional JMP if scratch X not equal scratch Y instruction.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:226</div></div>
<div class="ttc" id="agroup__pio__instructions_html_ga89ae8dfbcf647fb11c11a270cb974619"><div class="ttname"><a href="group__pio__instructions.html#ga89ae8dfbcf647fb11c11a270cb974619">pio_encode_nop</a></div><div class="ttdeci">static uint pio_encode_nop(void)</div><div class="ttdoc">Encode a NOP instruction.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:476</div></div>
<div class="ttc" id="agroup__pio__instructions_html_ga8abee17fb296d7df2d4938fa25662bb5"><div class="ttname"><a href="group__pio__instructions.html#ga8abee17fb296d7df2d4938fa25662bb5">pio_encode_in</a></div><div class="ttdeci">static uint pio_encode_in(enum pio_src_dest src, uint count)</div><div class="ttdoc">Encode an IN instruction.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:315</div></div>
<div class="ttc" id="agroup__pio__instructions_html_ga9494089ea30e55968884743b50233eee"><div class="ttname"><a href="group__pio__instructions.html#ga9494089ea30e55968884743b50233eee">pio_encode_jmp_pin</a></div><div class="ttdeci">static uint pio_encode_jmp_pin(uint addr)</div><div class="ttdoc">Encode a conditional JMP if input pin high instruction.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:239</div></div>
<div class="ttc" id="agroup__pio__instructions_html_ga983ded98ebaa885cf3ca0ebbcd8c8511"><div class="ttname"><a href="group__pio__instructions.html#ga983ded98ebaa885cf3ca0ebbcd8c8511">pio_encode_sideset</a></div><div class="ttdeci">static uint pio_encode_sideset(uint sideset_bit_count, uint value)</div><div class="ttdoc">Encode just the side set bits of an instruction (in non optional side set mode)</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:128</div></div>
<div class="ttc" id="agroup__pio__instructions_html_gab93b7ade8c9bd6b26213d4349c219994"><div class="ttname"><a href="group__pio__instructions.html#gab93b7ade8c9bd6b26213d4349c219994">pio_encode_mov_reverse</a></div><div class="ttdeci">static uint pio_encode_mov_reverse(enum pio_src_dest dest, enum pio_src_dest src)</div><div class="ttdoc">Encode a MOV instruction with bit reverse.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:405</div></div>
<div class="ttc" id="agroup__pio__instructions_html_gabfb50e373bb0be974d2a20fee51391ef"><div class="ttname"><a href="group__pio__instructions.html#gabfb50e373bb0be974d2a20fee51391ef">pio_encode_jmp_x_dec</a></div><div class="ttdeci">static uint pio_encode_jmp_x_dec(uint addr)</div><div class="ttdoc">Encode a conditional JMP if scratch X non-zero (and post-decrement X) instruction.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:187</div></div>
<div class="ttc" id="agroup__pio__instructions_html_gac9b3ae0db062491f5dd9f202fbf1f61c"><div class="ttname"><a href="group__pio__instructions.html#gac9b3ae0db062491f5dd9f202fbf1f61c">pio_encode_jmp_not_y</a></div><div class="ttdeci">static uint pio_encode_jmp_not_y(uint addr)</div><div class="ttdoc">Encode a conditional JMP if scratch Y zero instruction.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:200</div></div>
<div class="ttc" id="agroup__pio__instructions_html_gad142265ea88bd5f9ef5f1651f5fa2002"><div class="ttname"><a href="group__pio__instructions.html#gad142265ea88bd5f9ef5f1651f5fa2002">pio_encode_mov</a></div><div class="ttdeci">static uint pio_encode_mov(enum pio_src_dest dest, enum pio_src_dest src)</div><div class="ttdoc">Encode a MOV instruction.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:373</div></div>
<div class="ttc" id="agroup__pio__instructions_html_gae7094f127edb55a6d1d750145577eef8"><div class="ttname"><a href="group__pio__instructions.html#gae7094f127edb55a6d1d750145577eef8">pio_encode_set</a></div><div class="ttdeci">static uint pio_encode_set(enum pio_src_dest dest, uint value)</div><div class="ttdoc">Encode a SET instruction.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:463</div></div>
<div class="ttc" id="agroup__pio__instructions_html_gae9221d56036ef5670eddd0d5ca93b5fd"><div class="ttname"><a href="group__pio__instructions.html#gae9221d56036ef5670eddd0d5ca93b5fd">pio_encode_irq_wait</a></div><div class="ttdeci">static uint pio_encode_irq_wait(bool relative, uint irq)</div><div class="ttdoc">Encode a IRQ WAIT instruction.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:435</div></div>
<div class="ttc" id="agroup__pio__instructions_html_gaf9fdae45a6ab4826175267c41d6e6e91"><div class="ttname"><a href="group__pio__instructions.html#gaf9fdae45a6ab4826175267c41d6e6e91">pio_encode_jmp_not_osre</a></div><div class="ttdeci">static uint pio_encode_jmp_not_osre(uint addr)</div><div class="ttdoc">Encode a conditional JMP if output shift register not empty instruction.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:252</div></div>
<div class="ttc" id="agroup__pio__instructions_html_gafd946f6a77882a7f2c2d6a48b08529a7"><div class="ttname"><a href="group__pio__instructions.html#gafd946f6a77882a7f2c2d6a48b08529a7">pio_encode_wait_pin</a></div><div class="ttdeci">static uint pio_encode_wait_pin(bool polarity, uint pin)</div><div class="ttdoc">Encode a WAIT for pin instruction.</div><div class="ttdef"><b>Definition:</b> pio_instructions.h:285</div></div>
<div class="ttc" id="apico_8h_html"><div class="ttname"><a href="pico_8h.html">pico.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->

	<script src="main.js"></script>
</body>
</html>